package org.itboys.mobile.dto.wallet;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;

/**
 * 作者：zzq
 * 时间：2018/2/1
 * 描述：钱包
 */
public class CooWalletDto extends MobileBaseDto {
    private Long memberId;//用户Id
    private String memberName;
    private String userName;
    private String salesMemberName;
    private String salesUserName;
    private String managerMemberName;
    private String managerUserName;
    private Integer memberLevel;//会员级别  1，普卡会员  2，银卡会员  3，金卡会员
    //private BigDecimal limitAmount;//可以提现额度
    private BigDecimal totalLimit;//总额度
    private BigDecimal ableLimit;//可用额度
    private BigDecimal totalAmount;//总金额
    private BigDecimal cashAmount;//现金金额
    private BigDecimal scoreAmount;//积分金额
    private BigDecimal frozenAmount;//每天释放的金额
    private BigDecimal totalAchievement;//总业绩

    public CooWalletDto() {
    }

    public CooWalletDto(long id, String createTime, String createDate, Long memberId,
                        Integer memberLevel, BigDecimal totalLimit, BigDecimal ableLimit, BigDecimal totalAmount,
                        BigDecimal cashAmount, BigDecimal scoreAmount, BigDecimal frozenAmount,BigDecimal totalAchievement) {
        super(id, createTime, createDate);
        this.memberId = memberId;
        this.memberLevel = memberLevel;
        this.totalLimit = totalLimit;
        this.ableLimit = ableLimit;
        this.totalAmount = totalAmount;
        this.cashAmount = cashAmount;
        this.scoreAmount = scoreAmount;
        this.frozenAmount = frozenAmount;
        this.totalAchievement=totalAchievement;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public BigDecimal getTotalLimit() {
        return totalLimit;
    }

    public void setTotalLimit(BigDecimal totalLimit) {
        this.totalLimit = totalLimit;
    }

    public BigDecimal getAbleLimit() {
        return ableLimit;
    }

    public void setAbleLimit(BigDecimal ableLimit) {
        this.ableLimit = ableLimit;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getCashAmount() {
        return cashAmount;
    }

    public void setCashAmount(BigDecimal cashAmount) {
        this.cashAmount = cashAmount;
    }

    public BigDecimal getScoreAmount() {
        return scoreAmount;
    }

    public void setScoreAmount(BigDecimal scoreAmount) {
        this.scoreAmount = scoreAmount;
    }

    public BigDecimal getFrozenAmount() {
        return frozenAmount;
    }

    public void setFrozenAmount(BigDecimal frozenAmount) {
        this.frozenAmount = frozenAmount;
    }

    public String getSalesMemberName() {
        return salesMemberName;
    }

    public void setSalesMemberName(String salesMemberName) {
        this.salesMemberName = salesMemberName;
    }

    public String getSalesUserName() {
        return salesUserName;
    }

    public void setSalesUserName(String salesUserName) {
        this.salesUserName = salesUserName;
    }

    public String getManagerMemberName() {
        return managerMemberName;
    }

    public void setManagerMemberName(String managerMemberName) {
        this.managerMemberName = managerMemberName;
    }

    public String getManagerUserName() {
        return managerUserName;
    }

    public void setManagerUserName(String managerUserName) {
        this.managerUserName = managerUserName;
    }

    public String  getMemberLevelStr(){
        String memberLevelStr="";
        if(memberLevel==null)return memberLevelStr;
        switch (memberLevel) {
            case 1:
                memberLevelStr="普卡会员";
                break;
            case 2:
                memberLevelStr="银卡会员";
                break;
            case 3:
                memberLevelStr="金卡会员";
                break;
            default:
                break;
        }
        return memberLevelStr;
    }

    public BigDecimal getTotalAchievement() {
        return totalAchievement;
    }

    public void setTotalAchievement(BigDecimal totalAchievement) {
        this.totalAchievement = totalAchievement;
    }
}
